package com.leyou.common.Exception;

import lombok.Getter;

/**
 * 自定义异常
 */
@Getter
public class LyException extends RuntimeException {

    /**
     * 自定义一个异常状态码
     */
    private int status;


    public LyException(String message, int status) {
        super(message);
        this.status = status;
    }

    public LyException(String message, Throwable cause, int status) {
        super(message, cause);
        this.status = status;
    }

    public LyException(Throwable cause, int status) {
        super(cause);
        this.status = status;
    }
}
